package cn.bdqn.service.impl;

import cn.bdqn.entity.Admin;
import cn.bdqn.mapper.AdminMapper;
import cn.bdqn.service.AdminService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author zhangpengxiang
 * @description TODO
 * @date 2024/7/12
 */
@Service
public class AdminServiceImpl implements AdminService {

    @Autowired
    private AdminMapper adminMapper;

    @Override
    public Admin login(String account, String password){
        return adminMapper.getAdmin(account,password);
    }
}
